from .websocket import DemoWebSocket
from message_broker.apis import chat, counter, state


urlpatterns = [
    # websocket
    (r'/ws/standard/(?P<room_id>\w+)/?', DemoWebSocket),
    # chat
    (r'/api/v4/room/(?P<room_id>\w+)/chat/?', chat.TextMessageHandler),
    (r'/api/v4/room/(?P<room_id>\w+)/chat/image/?', chat.TextMessageHandler),
    # summary
    (r'/api/v4/room/(?P<room_id>\w+)/counter/?', counter.CounterHandler),
    (r'/api/v4/room/(?P<room_id>\w+)/summary/?', counter.SummaryHandler),
    # state
    (r'/api/v4/room/(?P<room_id>\w+)/modules/?', state.StateHandler),
]
